package priv.mill.homework03;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class XiaoMing {
	@Autowired
	private Cirlfriend girlfriend;

	public XiaoMing() {

	}

	public XiaoMing(Cirlfriend girlfriend) {
		this.girlfriend = girlfriend;
	}

	public Cirlfriend getGirlfriend() {
		return girlfriend;
	}

	public void setGirlfriend(Cirlfriend girlfriend) {
		this.girlfriend = girlfriend;
	}

	@Override
	public String toString() {
		return "XiaoMing [girlfriend=" + girlfriend + "]";
	}
	
	
}
